//
//  commonTools.swift
//  weiBo项目准备
//
//  Created by 鲜世杰 on 16/5/13.
//  Copyright © 2016年 鲜世杰. All rights reserved.
//

import UIKit
let SwitchRootVCNotification = "SwitchRootVCNotification"
let DidSeletedEmoticonNotification = "DidSeletedEmoticonNotification"
let DidSelectedDeleteEmoticonButtonNotification = "DidSelectedDeleteEmoticonButtonNotification"


let screenHeight = UIScreen.mainScreen().bounds.size.height
let screenWidth = UIScreen.mainScreen().bounds.size.width

func RGB (red : CGFloat, green : CGFloat , blue : CGFloat) -> UIColor{
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}
func RandomColor () -> UIColor {

    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    return RGB(CGFloat(red)/255, green: CGFloat(green)/255, blue: CGFloat(blue)/255)
    
}